package com.peas.platform.module.icims.base.mdm.controller.vo;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("站内信")
public class MessageVo extends BaseVo {

    @Comment(value = "站内信类型")
    @ApiModelProperty(value = "站内信类型")
    @Size(max = 20, message = "站内信类型不能超过20个字符")
    private String messageType;

    @Comment(value = "站内信标题")
    @ApiModelProperty(value = "站内信标题")
    @Size(max = 100, message = "站内信标题不能超过100个字符")
    private String title;

    @Comment(value = "站内信内容")
    @ApiModelProperty(value = "站内信内容")
    private String content;

    @Comment(value = "状态")
    @ApiModelProperty(value = "状态")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    // （用户表）外键
    @Comment(value = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Comment(value = "已读时间")
    @ApiModelProperty(value = "已读时间")
    private Date readTime;

    @Comment(value = "操作链接")
    @ApiModelProperty(value = "操作链接")
    @Size(max = 200, message = "操作链接不能超过200个字符")
    private String url;

}
